﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HZH_Controls.Controls;
using Petroleum.UC.Public;
using Petroleum.Model;
using Petroleum.DB.Model;
using Petroleum.UC.Base;
using Petroleum.Tool;

namespace Petroleum.UC
{
    public partial class Step2Img : UserControl
    {
        FormMain main = new FormMain();


        public Step2Img(FormMain main)
        {
            InitializeComponent();
            this.main = main;
            imgPPC.Initialization("Prediction Pressure Curve");
            imgE1.Initialization("Depth structural map of Top E1");
            imgL1.Initialization("Trajectory reservoir section of Well Koulele A(L1)");
            imgL2.Initialization("Trajectory reservoir section of Well Koulele A(L2)");
        }
        private void btnDown_BtnClick(object sender, EventArgs e)
        {
            Session.FormationPressure.ImgE1 = imgE1.ImgUrl;
            Session.FormationPressure.ImgL1 = imgL1.ImgUrl;
            Session.FormationPressure.ImgPPC = imgPPC.ImgUrl;
            Session.FormationPressure.ImgL2 = imgL2.ImgUrl;
            main.AddControl(new Step3Table(main));
        }
        private void btnUp_BtnClick(object sender, EventArgs e)
        {
            main.AddControl(new Step2FormationPressurePrediction(main));
        }
    }
}
